#region Summary 

// 
// Owner : JackieHan 
// 
// Solution : LearnSolution 
// 
// Project : SetpBySetp 
// 
// File : User.cs 
// 
// CopyRight : Copyright © 2009-2010 XunGu Corporation, All Rights Reserved 
// 
// Summary : 数据绑定类 
// 
// History : 
//			2010-05-06 10:24:51	    Create 
// 

#endregion

#region Using 

using System;
using System.Collections.Generic;
using System.ComponentModel;

#endregion

namespace Jackie.Silverliight.SetpBySetp
{
    /// <summary> 
    /// 数据绑定类 
    /// </summary> 
    public class User:INotifyPropertyChanged
    {
        private string name;
        private string address;

        public string Name
        {
            get { return this.name;} 
            set
            {
                name = value;
                if(PropertyChanged!=null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Name"));
            }
        }

        public string Address
        {
            get { return this.address;} 
            set
            {
                address = value;
                if(PropertyChanged!=null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Address"));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
